package com.superheroes.service.iml;
import com.superheroes.entity.SysUser;
import com.superheroes.mapper.SysUserMapper;
import com.superheroes.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SysUserServiceIml implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Transactional
    @Override
    public void addUser(SysUser sysUser) {
        SysUser newSysUser=new SysUser();
        newSysUser.setId(0L);
        newSysUser.insert();
    }
}
